import App from './App'
import axios from 'axios'

// 配置axios的全局默认值
axios.defaults.baseURL = 'https://your-backend-api.com'; // 设置后端API的基本地址
Vue.prototype.axios = axios;

Vue.prototype.$userID = '0123456789';
//Vue.prototype.$userName = '知心';

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif